package com.abel.quiz.common;/**
 * Created by abel.lin on 2017/8/4.
 */

import org.apache.commons.lang3.StringUtils;

/**
 * @author abel.lin
 * @date_time 2017/8/4 11:25
 * @description 常量类
 */
public class Constants {
    public static final String captchaCode = "CAPTCHA_CODE";
    public static final String loginCode = "LOGIN_ERROR_CODE";
    public static class LoginErrorCode{
        public static String captchaError = "CAPTCHA_ERROR";
        public static String userNotExists = "USER_NOT_EXISTS";
        public static String pwdError = "PWD_ERROR";
    }


    public static void main(String[] args) {
        String uri = "/admin/abcd/";
//        uri = StringUtils.substringAfter(uri,"/admin/");
        uri = StringUtils.substringBetween(uri,"/admin/","/");
        System.out.println(uri);
    }
}
